package com.sjms._12_行为_代理模式._1_静态代理;

/**
 * 被代理类
 */
public class Father implements Tool {
    Tool son;


    void setProxy(Tool son) {
        this.son = son;
    }

    @Override
    public String buy() {
        System.out.println("爸爸：我抽根烟，你去买个菜~");
        return son.buy();
    }
}
